package com.zsc.wxm.ysh.anjo.member.controller;


import com.zsc.wxm.ysh.anjo.member.service.LoginLogService;
import com.zsc.wxm.ysh.anjo.result.PageResult;
import com.zsc.wxm.ysh.anjo.service.base.model.member.qo.LoginLogQuery;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author playmaker
 * @since 2021-01-04
 */
@RestController
@RequestMapping("/user/login-log")
public class LoginLogController {

    @Resource
    private LoginLogService loginLogService;

    @PostMapping("/list-page")
    @ApiOperation("分页查询日志列表")
    public PageResult listPage(@Validated @RequestBody LoginLogQuery query) {
        return loginLogService.listPage(query);
    }

}

